package com.nondo.rdp.finance.service.impl.circle;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nondo.rdp.finance.domain.circle.CircleComment;
import com.nondo.rdp.finance.repository.circle.CircleCommentRepository;
import com.nondo.rdp.finance.service.circle.CircleCommentService;

@Transactional
@Service
public class CircleCommentServiceImpl implements CircleCommentService {
    @Autowired
    CircleCommentRepository circleCommentRepository;

    @Override
	public CircleComment findOne(Long id) {
		return this.circleCommentRepository.findOne(id);
	}
    
    @Override
    public CircleComment save(CircleComment circleComment) {
        return this.circleCommentRepository.save(circleComment);
    }

    @Override
    public void delete(Long id) {
        this.circleCommentRepository.deleteById(id);
    }

    @Override
    public List<CircleComment> findAll() {
        return this.circleCommentRepository.findAll();
    }
}